package cn.xt.service.orders;

import cn.xt.bean.Orders;
import cn.xt.dao.orders.OrdersDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;
import java.util.List;

/**
 * @author shkstart
 * @date 2018/11/26-9:26
 */
@Service("ordersService")
public class OrdersServiceImp implements OrdersService {
    @Resource(name = "ordersDao")
    private OrdersDao ordersDao;

    @Override
    public List<Orders> listOrders(int users_id, int zfzt) {
        return ordersDao.listOrders(users_id,zfzt);
    }

    @Override
    public List<Orders> fdListOrders(int fdusers_id) {
        return ordersDao.fdListOrders(fdusers_id);
    }

    @Override
    public List<Orders> fdListOrders1(int fdusers_id) {
        return ordersDao.fdListOrders1(fdusers_id);
    }

    @Override
    public int delOrders(String orders_id) {
        return ordersDao.delOrders(orders_id);
    }

    @Override
    public int addOrders(Orders orders) {
        return ordersDao.addOrders(orders);
    }

    @Override
    public int ordersCount(int users_id) {
        return ordersDao.ordersCount(users_id);
    }

    @Override
    public int ordersWCount(int users_id) {
        return ordersDao.ordersWCount(users_id);
    }

    @Override
    public int ordersYCount(int users_id) {
        return ordersDao.ordersYCount(users_id);
    }

    @Override
    public Orders findOrdersId(long orders_id) {
        return ordersDao.findOrdersId(orders_id);
    }


}
